/**
 * 
 */
package task.manager;

import junit.framework.Assert;
import junit.framework.TestCase;

/**
 * Test class for LoginDataMap class.
 * 
 * @author Harrison Saylor, Aaron Mead, Marc Huet, Greg Ruskin
 * @version 2
 */
public class LoginDataMapTest extends TestCase {

	LoginDataMap ldm;
	String username;
	String password;
	
	/**
	 * Sets up variables for the test case.
	 */
	public void setUp() {
		ldm = new LoginDataMap();
		username = "Jane";
		password = "Doe";
	} // End of setUp(0 method.
	
	/**
	 * Test method for {@link task.manager.LoginDataMap#isValid(java.lang.String, java.lang.String)}.
	 */
	public void testIsValid() {
		Assert.assertEquals(true, ldm.isValid("default", "default"));
		Assert.assertEquals(false, ldm.isValid("Jane", "Doe"));
		ldm.put(username, password);
		Assert.assertEquals(true, ldm.isValid(username, password));	
	} // End of testIsValid() method.

} // End of LoginDataMapTest class.
